package org.footballmanager.pandafootball.system.service;

import org.springframework.web.multipart.MultipartFile;
import tk.mybatis.mapper.entity.Example;

import javax.servlet.http.HttpServletRequest;
import java.io.Serializable;
import java.util.List;

public interface BaseService<T> {
	
	int save(T t, HttpServletRequest request);

	int updateAll(T t, HttpServletRequest request);

	int updateNotNull(T t, HttpServletRequest request);

	int delete(Serializable id, HttpServletRequest request);
	
	T get(Serializable id);

	List<T> getall();
	
	List<T> findall(Example example);

	int countByCondition(Example example);

	T findByExample(Example example);
}

